package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 真系亲属表
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-02
 */
@Data
@TableName("order_dis_clan")
@ApiModel(value = "OrderDisClan对象", description = "真系亲属表")
public class OrderDisClan implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("order_apply表id")
    private Long orderId;

    @ApiModelProperty("order_detail表id")
    private Long orderDetailId;

    @ApiModelProperty("order_dis_detail表id")
    private Long orderDisDetailId;

    @ApiModelProperty("亲属id,即学生id")
    private Long studentId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    @ApiModelProperty("学生id")
    private Long studentIdFrom;

    @TableField(exist = false)
    @ApiModelProperty("亲属id")
    private Long studentIdTo;

    @TableField(exist = false)
    @ApiModelProperty("学生名字")
    private String studentNameFrom;

    @TableField(exist = false)
    @ApiModelProperty("亲属名字")
    private String studentNameTo;

}
